package xcmg.device.infra.annotation;


import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import xcmg.device.infra.interceptor.externalApiCheck.handle.ApiCheckStrategy.ApiCheckOptionEnum;

/**
 * 外部接口调用注解，加此注解的controller方法，需要通过拦截器的外部接口校验
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ExternalApiRequest {

  ApiCheckOptionEnum value() default ApiCheckOptionEnum.OPTION_SECRET;

}
